package com.dts.entity;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class DateName {
    private String name;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//接受的格式
    @JSONField(format="yyyy-MM-dd HH:mm:ss")//输出的格式
    private Date createTime;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
